                             PB/Win Example Code


  You are given permission to use any of the code in these sample programs in
  your own programming projects with no royalty requirements. Any code you use
  should include a PowerBASIC copyright notice in your source code comments to
  indicate that the code is the property of PowerBASIC, Inc. You are not
  required to provide the end user any PowerBASIC copyright information in
  either your executable application or documentation.

  Note: VB5 users wishing to try the Samples\VB32\* example projects should
  copy the DLLs into the "\Program Files\Visual Studio\VB" or "\Windows"
  folder so that the VB Design-time environment can locate the files at
  run-time. VB6 users may be able to use the projects directly without copying
  the DLL files.



Samples\COM\Excel
-----------------
ExcelApp.inc  - Interface definitions for Excel examples
ExcelAp1.bas  - MS Excel COM Automation #1 - Fill table and draw chart
ExcelAp1.exe  - MS Excel COM Automation #1 (compiled)
ExcelAp2.bas  - MS Excel COM Automation #2 - Fill table and print preview
ExcelAp2.exe  - MS Excel COM Automation #2 (compiled)


Samples\COM\MSAgent
-------------------
MSAgent.bas   - Microsoft Agent Com Automation animation example
MSAgent.exe   - Microsoft Agent Com Automation (compiled)
MSAgent.inc   - Interface definitions for MS Agent example


Samples\COM\Word
----------------
oWord.bas     - MS Word COM Automation - Create a document and add text
oWord.exe     - MS Word COM Automation (compiled)
oWord.inc     - Interface definitions for MS Word example


Samples\Common
--------------
Common32.bas  - Library of useful functions for PB/WIN and VB programmers
Common32.dll  - Library of useful functions (compiled)
Common32.inc  - PowerBASIC Declarations for Common32.dll
Common32.txt  - Visual Basic module/declarations for Common32.dll


Samples\Comms
------------
Comm.bas      - Simple serial communications program - dumb terminal
Comm.exe      - Simple serial communications program (compiled)


Samples\DDT\Address
-------------------
Address.bas   - Simple address book application for learning DDT programming
Address.dat   - Sample database file
Address.exe   - Simple address book application (compiled)


Samples\DDT\Animate
-------------------
Animate.bas   - Setup, start and stop an AVI animation
Animate.exe   - Setup, start and stop an AVI animation (compiled)
Animate.pbr   - PowerBASIC Compiled Resource script
Animate.rc    - Resource script
Filecopy.avi  - AVI file for inclusion in Compiled Resource script


Samples\DDT\BmpList
-------------------
BmpList.bas   - Ownerdrawn list box with a list of countries and their maps
BmpList.exe   - Ownerdrawn list box (compiled)
SMAL_nnn.BMP  - A set of 14 map files for use in the list box


Samples\DDT\Calendar
--------------------
Calendar.bas  - Display calendars covering a 6-month duration
Calendar.exe  - Display calendars covering a 6-month duration (compiled)


Samples\DDT\ComboBoxEx
----------------------
ComboBoxEx.bas - Extended combo box containing images and text
ComboBoxEx.exe - Extended combo box containing images and text (compiled)
SMAL_nnn.BMP   - A set of 14 map files for use in the combo box


Samples\DDT\DateTime
--------------------
DateTime.bas  - Use the Date and time picker control
DateTime.exe  - Use the Date and time picker control (compiled)


Samples\DDT\FileFind
--------------------
FileFind.bas  - Comprehensive file-finder utility based on DDT dialogs
FileFind.exe  - Comprehensive file-finder utility (compiled)


Samples\DDT\HelloDDT
--------------------
HelloDDT.bas  - Simple DDT dialog and callback example
HelloDDT.exe  - Simple DDT dialog and callback example (compiled)


Samples\DDT\Interface Explorer\Final
------------------------------------
AppIcon.ico            - Application Icon
Interface Explorer.bas - Finished (main) source code for the PB/IE project
Interface Explorer.exe - Interface Explorer final version (compiled)
Interface Explorer.inc - Include file containing core processing code
Interface Explorer.pbr - PowerBASIC Compiled Resource script
Interface Explorer.rc  - Resource script
Interface.ico          - Icon for use as a TreeView control "node"
Method.ico             - Icon for use as a TreeView control "node"
Object.ico             - Icon for use as a TreeView control "node"
TestFile.inc           - Example Interface definition file to test PB/IE


Samples\DDT\Interface Explorer\Template
---------------------------------------
AppIcon.ico            - Application Icon
Interface Explorer.bas - Raw generated PowerBASIC Forms project code
Interface Explorer.exe - Raw PowerBASIC Forms project (compiled)
Interface Explorer.pbr - PowerBASIC Compiled Resource script
Interface Explorer.rc  - Resource script


Samples\DDT\Progress
--------------------
Progress.bas  - DDT dialog example using a Progress control
Progress.exe  - DDT dialog example using a Progress control (compiled)


Samples\DDT\SysIPAddress
------------------------
SysIpadd.bas  - DDT dialog example using the IP Address control
SysIpadd.exe  - DDT dialog example using the IP Address control (compiled)


Samples\DDT\Tab Control
-----------------------
TabControl.bas - Create a Tabbed dialog with DDT
TabControl.exe - Create a Tabbed dialog with DDT (compiled)


Samples\DDT\Toolbar
-------------------
Toolbar.bas   - A DDT dialog with a toolbar control
Toolbar.exe   - A DDT dialog with a toolbar control (compiled)


Samples\DLL
-----------
DLL.bas       - Template code for creating a Dynamic link library (DLL)
DLL.dll       - Template code for creating a DLL (compiled)


Samples\Hello
-------------
Hello.bas     - Simple "Hello, World!" example with icon and version resource
Hello.exe     - Simple "Hello, World!" example (compiled)
Hello.ico     - Icon file
Hello.pbr     - PowerBASIC Compiled Resource script
Hello.rc      - Resource script
Hello.txt     - Description of HELLO application


Samples\Internet\SMTP
---------------------
SMTP.bas      - Send email entered into a DDT "form"
SMTP.bmp      - background bitmap image to "color" the DDT "form"
SMTP.exe      - Send email entered into a DDT "form" (compiled)


Samples\Internet\TCP
--------------------
EchoServ.bas  - TCP Echo Server example
EchoServ.exe  - TCP Echo Server example (compiled)
EchoServ.pbr  - PowerBASIC Compiled Resource script
EchoServ.rc   - Resource script
EchoServ.pbr  - Compiled Resource script
EClient.bas   - TCP Echo Client example
EClient.exe   - TCP Echo Client example (compiled)
TCP32.inc     - TCP primitives for SMTP, POP3 and other protocols
WhoIs.bas     - Look up domain information in rs.internic.net database
WhoIs.exe     - Look up domain information (compiled)


Samples\Internet\UDP
--------------------
UDPClnt.bas   - UDP Time client example
UDPClnt.exe   - UDP Time client example (compiled)
UDPSrvr.bas   - UDP Time server example
UDPSrvr.exe   - UDP Time server example (compiled)


Samples\SDK\Cool
----------------
Cool.bas      - SDK graphics sample using LineTo API to draw lines
Cool.exe      - SDK graphics sample using LineTo (compiled)
Kool.bas      - SDK graphics sample using PolyBezierTo API to draw lines
Kool.exe      - SDK graphics sample using PolyBezierTo (compiled)


Samples\SDK\Floating Toolbar
----------------------------
Floating.bas  - SDK project featuring a floating toolbar window
Floating.exe  - SDK project featuring a floating toolbar window (compiled)
Floating.ico  - Application icon
Floating.pbr  - PowerBASIC Compiled Resource script
Floating.rc   - Resource script
Toolbar.bmp   - Toolbar Bitmap


Samples\SDK\HelloWin
--------------------
HelloWin.bas  - Another HELLO example, but with a gradient-drawn GUI window
HelloWin.exe  - Another HELLO example, but with a gradient (compiled)
HelloWin.ico  - Application icon
HelloWin.pbr  - PowerBASIC Compiled Resource script
HelloWin.rc   - Resource script


Samples\SDK\PBNote1
-------------------
Note.ico       - MDI window icon
PBNoteFlat.bas - Text editor example featuring a "flat" toolbar
PBNoteFlat.exe - Text editor example featuring a "flat" toolbar (compiled)
PBNote.bas     - Text editor example
PBNote.exe     - Text editor example (compiled)
PBNote.ico     - Application icon
PBNote.pbr     - PowerBASIC Compiled Resource script
PBNote.rc      - Resource script


Samples\SDK\PBNote2
-------------------
Note.ico      - MDI window icon
PBNote2.ini   - Recent Files list for PBNote2 text editor example
PBNote2.bas   - Advanced text editor example
PBNote2.exe   - Advanced text editor example (compiled)
PBNote2.ico   - Application icon
PBNote2.pbr   - PowerBASIC Compiled Resource script
PBNote2.rc    - Resource script


Samples\SDK\Skeleton
--------------------
Skeleton.bas  - SDK-style application template code
Skeleton.exe  - SDK-style application template code (compiled)
Skeleton.ico  - Application icon
Skeleton.pbr  - PowerBASIC Compiled Resource script
Skeleton.rc   - Resource script
Toolbar.bmp   - Toolbar Bitmap


Samples\SDK\Tray
----------------
Face1.ico     - 5 icon files for use as the tray icon
Tray.bas      - System Tray example application code
Tray.exe      - System Tray example application (compiled)
Tray.pbr      - PowerBASIC Compiled Resource script
Tray.rc       - Resource script


Samples\Tword
-------------
Tword.bas     - Buggy sample for learning the debugger (See on-line help)
Tword.dat     - buggy sample for learning the debugger (see manual)

Samples\Util\Restart
--------------------
Restart.bas   - Restart PC example, including Windows NT/2000/XP privilege code
Restart.exe   - Restart PC example (compiled)
Restart.ico   - Application icon
Restart.pbr   - PowerBASIC Compiled Resource script
Restart.rc    - Resource script


Samples\Util\WinErr
-------------------
WinErr.bas    - Convert Windows error codes into text descriptions
WinErr.dll    - Convert Windows error codes into text descriptions (compiled)
WinErr.inc    - Include file for PowerBASIC for Windows 7.0 and PB/CC 3.0
WinErr.txt    - Declaration module file for Visual Basic


Samples\Util\WinMsg
-------------------
WinMsg.bas    - Convert Callback message numbers into text message names
WinMsg.dll    - Convert Callback message numbers (compiled)
WinMsg.inc    - Include file for PowerBASIC for Windows 7.0 and PB/CC 3.0
WinMsg.pbr    - PowerBASIC Compiled Resource script containing a string table
WinMsg.rc     - Resource script
WinMsg.txt    - Declaration module file for Visual Basic


Samples\VB32\AddOne (Maths on a VB variable in PB)
-------------------
AddOne.bas    - PowerBASIC code for the AddOne.dll file
AddOne.dll    - PowerBASIC .dll for use in the AddOne VB Project
AddOne.exe    - Compiled VB project (using VB6)
AddOne.frm    - Visual Basic Form File
AddOne.txt    - Visual Basic Module (VB Declaration for AddOne.dll)
AddOne.vbp    - Visual Basic Project file (VB5/VB6 compatible)


Samples\VB32\CapFirst (Capitalizing a VB string in PB)
---------------------
CapFirst.bas  - PowerBASIC code for the CapFirst.dll file
CapFirst.dll  - PowerBASIC .dll for use in the CapFirst VB Project
CapFirst.exe  - Compiled VB project (using VB6)
CapFirst.frm  - Visual Basic Form File
CapFirst.frx  - Test Data for the VB CapFirst project
CapFirst.txt  - Visual Basic Module (VB Declaration for CapFirst.dll)
CapFirst.vbp  - Visual Basic Project file (VB5/VB6 compatible)


Samples\VB32\ReDim VB Array (Redimensioning a VB array in PB)
---------------------------
ReDim VB Array.exe - Compiled VB project (using VB6)
ReDim VB Array.frm - Visual Basic Form File
Redim VB Array.vbp - Visual Basic Project file (VB5/VB6 compatible)
VBReDim.bas        - PowerBASIC code for the VBReDim.dll file
VBReDim.dll        - PowerBASIC .dll for use in the ReDim VB Array Project
VBReDim.txt        - Visual Basic Module (VB Declaration for VBReDim.dll)


Samples\VB32\Sort VB Array (Sorting a VB array in PB)
--------------------------
Sort VB Array.exe  - Compiled VB project (using VB6)
Sort VB Array.frm  - Visual Basic Form File
Sort VB Array.vbp  - Visual Basic Project file (VB5/VB6 compatible)
VBSort.bas         - PowerBASIC code for the VBSort.dll file
VBSort.dll         - PowerBASIC dll for use in the Sort VB Array Project
VBSort.txt         - Visual Basic Module (VB Declaration for VBSort.dll)
